﻿using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using Bornander.UI;
using Bornander.UI.ListItems;

namespace MiniGOQO
{
    public partial class HotmanForm : Form
    {
        public HotmanForm()
        {

            //加载图片
            Bitmap hongren1 = new System.Drawing.Bitmap(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase) +
                      @"\pictures\红人1.png");
            Bitmap hongren2 = new System.Drawing.Bitmap(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase) +
                      @"\pictures\红人2.jpg");
            Bitmap hongren3 = new System.Drawing.Bitmap(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase) +
                      @"\pictures\红人3.png");
            Bitmap hongren4 = new System.Drawing.Bitmap(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase) +
                      @"\pictures\红人4.jpg");
            //初始化
            InitializeComponent();
            //激活定时器
            HotmanListbox.StartTimer();

            Color c1=Color.Pink;
            Color c2=Color.Red;
            //添加项
            Album hot1 = new Album("郑铠羡——外联部副部长","广州美术学院","发布日期：09-3-1",hongren1,c1,c2,0);
            Album hot2 = new Album("陈跃——校园创作歌手", "广州中医药大学", "发布日期：09-3-1", hongren2, c1, c2, 0);
            Album hot3 = new Album("小雨乐队——校园BAND队", "华南理工大学", "发布日期：09-3-1", hongren3, c1, c2, 0);
            Album hot4 = new Album("赵倩琦——奥运志愿者", "广州中医药大学", "发布日期：09-3-24", hongren4, c1, c2, 0);

            HotmanListbox.AddItem(hot1);
            HotmanListbox.AddItem(hot2);
            HotmanListbox.AddItem(hot3);
            HotmanListbox.AddItem(hot4);
        }

        private void menuItem2_Click(object sender, EventArgs e)
        {
            HotmanListbox.StopTimer();//闭关定时器
            MainForm mf = new MainForm();
            mf.Show();
            this.Hide();
        }
    }
}